package ar.edu.caece.compiler.grammars.sample2.grammar;

import ar.edu.caece.compiler.grammars.sample2.tokens.PlusToken;


// E1' -> + E
public class E1p implements E1{
	public PlusToken getPlusToken() {
		return plusToken;
	}
	public void setPlusToken(PlusToken plusToken) {
		this.plusToken = plusToken;
	}
	public E getE() {
		return e;
	}
	public void setE(E e) {
		this.e = e;
	}
	
	public E1p(PlusToken token,E next) {
		e = next;
		plusToken = token;
	}
	private PlusToken plusToken;
	private E e;
	@Override
	public String getRepresentation() {
		return "E1' -> [" + plusToken.getLexema() + " " + e.getRepresentation() + "]";
	}
}
